import { defineStore } from 'pinia';

export const useGoodsDetailStore = defineStore('goods-detail', {
	state: () => {
		return {
			isShowComboPanel: false,
		}
	},

	getters: {
		
	},

	actions: {
		// 重置store
		RESET_STORE() {
			this.$reset();
		},
		
		// 显示规格面板
		SHOW_COMBO_PANEL() {
			this.isShowComboPanel = true;
		},
		
		// 隐藏规格面板
		HIDE_COMBO_PANEL() {
			this.isShowComboPanel = false;
		},
	},
})